﻿<%@ Page Title="" Language="C#" MasterPageFile="~/KeyUnit/KeyUnit.master" AutoEventWireup="true"
    CodeFile="KeyUnitList.aspx.cs" Inherits="KeyUnit_KeyUnitList" StylesheetTheme="Main" %>


<%@ Register Src="~/UserContral/ListPageContral.ascx" TagName="ListPageContral" TagPrefix="uc1" %>
<%@ Register Assembly="DundasWebChart" Namespace="Dundas.Charting.WebControl" TagPrefix="DCWC" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    
 
    <style type="text/css">
        .style6
        {
            width: 70px;
        }
        .style9
        {
            width: 15px;
        }
         .style10
        {
            width:500px;
        }
        .style11
        {
            width: 50px;
        }
        .style12
        {
        }
        .style17
        {
            height: 23px;
        }
        .style18
        {
            height: 23px;
        }
        .style19
        {
            height: 23px;
            width: 193px;
        }
        .style20
        {
            height: 23px;
        }
        .style24
        {
            width: 82px;
        }
        .style26
        {
            width: 104px;
        }
        .style27
        {
            width: 167px;
        }
        .style28
        {
            height: 23px;
            width: 167px;
        }
    </style>

    <script src="data.js" type="text/javascript"></script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
    
    
    
    <div style="width: 948px; height: 1100px; border: solid 1px #333;">
        <div style="width: 948px; min-height: 500px; text-align: center;">
		<br/>
            <h3>
                各支队完成情况统计表</h3>
            <div style="width: 948px;">
                <table id="keytj" border="0" cellpadding="0" cellspacing="0" width="940px;">
                    <tr>
                        <td align="center">
                            <asp:GridView ID="GridView1" Width="900px" runat="server" PagerStyle-HorizontalAlign="Left"
                                HeaderStyle-HorizontalAlign="Center" RowStyle-HorizontalAlign="Center" BorderStyle="Solid"
                                BorderWidth="1" BorderColor="#CCCCCC" HeaderStyle-Height="30" RowStyle-Height="25">
                                <RowStyle BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" Height="25px"
                                    HorizontalAlign="Center" />
                                <PagerStyle HorizontalAlign="Left" />
                                <HeaderStyle Height="30px" HorizontalAlign="Center" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
                
                
            </div>
        </div>
        <div style="width: 948px; min-height: 400px;">
            <DCWC:Chart ID="UserChart" runat="server" BackGradientEndColor="White" BackGradientType="DiagonalLeft"
                BorderLineColor="" BorderLineStyle="Solid" Height="400px" Palette="Dundas" Width="900px">
                <Legends>
                    <DCWC:Legend Alignment="Far" BackColor="White" BorderColor="26, 59, 105" Docking="Top"
                        LegendStyle="Column" Name="Default" ShadowOffset="2">
                    </DCWC:Legend>
                </Legends>
                <Series>
                    <DCWC:Series Name="支队完成率" ChartType="Column" CustomAttributes="RadarDrawingStyle=Area" 
                        ShadowOffset="1" ShowLabelAsValue="True" LabelFormat="p">
                    </DCWC:Series>
                    <DCWC:Series Name="大队完成率" ChartType="Column" CustomAttributes="RadarDrawingStyle=Area" 
                        ShadowOffset="1" ShowLabelAsValue="True" LabelFormat="p">
                    </DCWC:Series>
                    <DCWC:Series Name="派出所完成率" ChartType="Column" CustomAttributes="RadarDrawingStyle=Area" 
                        ShadowOffset="1" ShowLabelAsValue="True" LabelFormat="p">
			</DCWC:Series>
                </Series>
                <ChartAreas>
                    <DCWC:ChartArea BackColor="Transparent" BorderColor="" BorderStyle="Solid" Name="Default">
                        <AxisY LineColor="120, 0, 0, 0">
                            <MinorGrid LineColor="Silver" />
                            <MajorGrid LineColor="Silver" />
                        </AxisY>
                        <AxisX Interval="1" TitleAlignment="Far" TitleFont="宋体, 9pt">
                            <MinorGrid LineColor="Silver" />
                            <MajorGrid LineColor="Silver" />
                        </AxisX>
                    </DCWC:ChartArea>
                </ChartAreas>
                <Titles>
                    <DCWC:Title Name="Title" Text="" Font="Microsoft Sans Serif, 13pt, style=Bold">
                    </DCWC:Title>
                </Titles>
                <BorderSkin FrameBackColor="CornflowerBlue" FrameBackGradientEndColor="CornflowerBlue"
                    PageColor="AliceBlue" />
            </DCWC:Chart>
        </div>
    </div>
    
    
    
    
        <table >
            <tr>
                <td class="style12" colspan="7"  >
                
                
                
                    </td>
            </tr>
            <tr>
                <td class="style24"  >
                    &nbsp;</td>
                <td  colspan="6">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style24" >
                    <asp:Label ID="lblZD" runat="server" Text="支队"></asp:Label>
                </td>
                <td  colspan="2" >
                    <asp:DropDownList runat="server" Height="24px" Width="250px" ID="ddlZD" 
                        Style="margin-bottom: 1px; margin-left: 0px;" AutoPostBack="True" 
                        onselectedindexchanged="ddlZD_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td align="center" class="style26">
                    <asp:Label ID="lblDD" runat="server" Text="大队"></asp:Label>
                </td>
                <td class="style27" >
                    <asp:DropDownList runat="server" Height="23px" Width="250px" ID="ddlDD" 
                        Style="margin-bottom: 1px; margin-right: 20px;">
                    </asp:DropDownList>
                </td>
                <td colspan="2" >
                    <asp:RadioButtonList runat="server" RepeatDirection="Horizontal" Height="16px" 
                        ID="rblPolice" onclick="rblChange()" Width="207px">
                        <asp:ListItem Selected="True" Value="大队">大队</asp:ListItem>
                        <asp:ListItem Value="派出所">派出所</asp:ListItem>
                        <asp:ListItem>全部</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="style24" >
                    单位类型</td>
                <td  colspan="2" >
                    <asp:DropDownList runat="server" Height="24px" Width="250px" ID="ddlUnitType" 
                        Style="margin-bottom: 1px">
                    </asp:DropDownList>
                </td>
                <td align="center" class="style26">
                    <asp:Label ID="Label1" runat="server" Text="完成情况"></asp:Label>
                </td>
                <td colspan="3" >
                    <asp:RadioButtonList runat="server" RepeatDirection="Horizontal" Height="16px" 
                        ID="rblState" onclick="rblChange()" Width="250px">
                        <asp:ListItem Selected="True" Value="已完成">已完成</asp:ListItem>
                        <asp:ListItem Value="未完成">未完成</asp:ListItem>
                        <asp:ListItem>全部</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="style17" >
                    开始时间</td>
                <td class="style19" >
                    <asp:TextBox ID="txtTimeFrom" runat="server" Width="250px" onfocus="setday(this)"></asp:TextBox>
                    </td>
                <td  colspan="2" class="style20" align="center">
                    结束时间</td>
                <td class="style28" >
                    <asp:TextBox ID="txtTimeTo" runat="server"  Width="250px" onfocus="setday(this)"></asp:TextBox>
                    </td>
                <td class="style18" >
                    </td>
                <td align="right" class="style18"  >
                    <asp:Button ID="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click" 
                        Height="25px" Width="65px" />
                </td>
            </tr>
            <tr>
                <td class="style17" colspan="2" style="color: #FF0000" >
                    ★注：单位名称红色为新添加，蓝色为更改</td>
                <td  colspan="2" class="style20" align="center">
                    &nbsp;</td>
                <td class="style28" >
                    &nbsp;</td>
                <td class="style18" >
                    &nbsp;</td>
                <td align="right" class="style18"  >
                    &nbsp;</td>
            </tr>
            <tr>
                <td  colspan="7">
                    <asp:GridView ID="gvDW" runat="server" Caption="<span>重点单位列表</span>"
                        AutoGenerateColumns="False" DataKeyNames="PerformanceID,WriteTime" 
                        
                        OnRowCommand="gvDW_RowCommand" OnRowDataBound="gvDW_RowDataBound" 
                        OnRowDeleting="gvDW_RowDeleting" OnRowEditing="gvDW_RowEditing" 
                        Width="100%" PageSize="20">
                        <Columns>
                            <asp:BoundField DataField="Id" HeaderText="PerformanceID" 
                                Visible="False">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="KeyUnitName" HeaderText="单位名称">
                            <ItemStyle HorizontalAlign="Center" Wrap="False" Width="500px" />
                            <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="UpTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss }" 
                                HeaderText="更新时间">
                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PerformanceState" HeaderText="是否完成">
                            <ItemStyle HorizontalAlign="Center" Width="80px" />
                            <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </asp:BoundField>
                            <asp:CommandField HeaderText="查看" SelectText="详细" ShowSelectButton="True">
                            <ItemStyle ForeColor="Green" HorizontalAlign="Center" Width="50px" 
                                Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </asp:CommandField>
                            <asp:CommandField EditText="修改" HeaderText="编辑" ShowEditButton="True">
                            <ItemStyle ForeColor="Blue" HorizontalAlign="Center" Wrap="False" 
                                Width="50px" />
                            <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </asp:CommandField>
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" DeleteText="删除">
                            <ItemStyle ForeColor="Red" HorizontalAlign="Center" Wrap="False" Width="50px" />
                            <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                            </asp:CommandField>
                            <asp:BoundField DataField="WriteTime" 
                                DataFormatString="{0:yyyy-MM-dd HH:mm:ss }" HeaderText="录入时间" Visible="False" ItemStyle-Width="0px" />
                                
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="7">
                    <uc1:ListPageContral ID="ListPageContral1" runat="server" PageSize="20" OnPageSizeChange="ListPageContral1_PageSizeChange" />
                </td>
            </tr>
            <tr>
                <td colspan="7" >
                    重点单位类型对照表</td>
            </tr>
            <tr>
                <td class="style6" colspan="7" >
                    <asp:DataList ID="DataList1" runat="server" Width="928px">
                        <ItemTemplate>
                            <table>
                                <tr>
                                    <td class="style11" >
                                        <%# Eval("KeyUnitTypeDescript")%>
                                        </td>
                                    <td class="style9">
                                       
                                       </td>
                                    <td class="style10">
                                        <%# Eval("KeyUnitTypeName")%></td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </td>
            </tr>
            <tr>
                <td class="style24"  >
                    &nbsp;</td>
                <td  colspan="6">
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
	
    			<asp:Label runat="server" ID="lblWhere" Visible="False"></asp:Label>
		
		 	<asp:Label runat="server" ID="lblTempWhere" Visible="False"></asp:Label>
		
</asp:Content>
